
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta charset="utf-8" />
    <title>profile_from_txt &#8212; Texas A&amp;M Oil spill / Outfall Calculator 2.1.0 documentation</title>
    <link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
    <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
    <script id="documentation_options" data-url_root="../../" src="../../_static/documentation_options.js"></script>
    <script src="../../_static/jquery.js"></script>
    <script src="../../_static/underscore.js"></script>
    <script src="../../_static/doctools.js"></script>
    <script src="../../_static/language_data.js"></script>
    <link rel="index" title="Index" href="../../genindex.html" />
    <link rel="search" title="Search" href="../../search.html" />
    <link rel="next" title="profile_from_lab" href="profile_from_lab.html" />
    <link rel="prev" title="profile_from_ctd" href="profile_from_ctd.html" />
   
  <link rel="stylesheet" href="../../_static/custom.css" type="text/css" />
  
  
  <meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9" />

  </head><body>
  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          

          <div class="body" role="main">
            
  <div class="section" id="profile-from-txt">
<h1>profile_from_txt<a class="headerlink" href="#profile-from-txt" title="Permalink to this headline">¶</a></h1>
<dl class="field-list simple">
<dt class="field-odd">Release</dt>
<dd class="field-odd"><p>2.1</p>
</dd>
<dt class="field-even">Date</dt>
<dd class="field-even"><p>Jun 05, 2020</p>
</dd>
</dl>
<span class="target" id="module-profile_from_txt"></span><div class="section" id="create-a-profile-from-arbitrary-ascii-text-files">
<h2>Create a profile from arbitrary ASCII text files<a class="headerlink" href="#create-a-profile-from-arbitrary-ascii-text-files" title="Permalink to this headline">¶</a></h2>
<div class="section" id="script-profile-from-txt">
<h3>Script profile_from_txt<a class="headerlink" href="#script-profile-from-txt" title="Permalink to this headline">¶</a></h3>
<p>Use the TAMOC ambient module to create profiles in netCDF format for use by
TAMOC from data in text files. This file demonstrates working with data
digitized from plots of temperature and salinity in the SINTEF DeepSpill 
report</p>
</div>
<div class="section" id="notes">
<h3>Notes<a class="headerlink" href="#notes" title="Permalink to this headline">¶</a></h3>
<p>Much of the input data coded in the script (e.g., columns to extract, column
names, lat and lon location data, date and time, etc.) must be known by the
user (e.g., from the SINTEF report) and is hand-coded in the script code.</p>
</div>
<div class="section" id="requires">
<h3>Requires<a class="headerlink" href="#requires" title="Permalink to this headline">¶</a></h3>
<p>This script read data from the files:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="o">./</span><span class="n">Profiles</span><span class="o">/</span><span class="n">Raw_Data</span><span class="o">/</span><span class="n">C</span><span class="o">.</span><span class="n">dat</span>
<span class="o">./</span><span class="n">Profiles</span><span class="o">/</span><span class="n">Raw_Data</span><span class="o">/</span><span class="n">T</span><span class="o">.</span><span class="n">dat</span>
</pre></div>
</div>
</div>
<div class="section" id="returns">
<h3>Returns<a class="headerlink" href="#returns" title="Permalink to this headline">¶</a></h3>
<p>This script generates a <cite>ambient.Profile</cite> object, whose netCDF file is written
to the file:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="o">./</span><span class="n">Profiles</span><span class="o">/</span><span class="n">Profiles</span><span class="o">/</span><span class="n">DS</span><span class="o">.</span><span class="n">nc</span>
</pre></div>
</div>
</div>
</div>
</div>


          </div>
          
        </div>
      </div>
      <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
        <div class="sphinxsidebarwrapper">
<h1 class="logo"><a href="../../index.html">Texas A&M Oil spill / Outfall Calculator</a></h1>








<h3>Navigation</h3>
<ul class="current">
<li class="toctree-l1 current"><a class="reference internal" href="../../user_manual.html">TAMOC User Manual</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../unit_tests.html">Unit Tests</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../glossary.html">Glossary</a></li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../bugs.html">Reporting Bugs</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../readme.html">Read Me File</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../release.html">Release Notes</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../license.html">License</a></li>
</ul>

<div class="relations">
<h3>Related Topics</h3>
<ul>
  <li><a href="../../index.html">Documentation overview</a><ul>
  <li><a href="../../user_manual.html">TAMOC User Manual</a><ul>
  <li><a href="../../guides/ambient.html">Ambient Module Users Guide</a><ul>
      <li>Previous: <a href="profile_from_ctd.html" title="previous chapter">profile_from_ctd</a></li>
      <li>Next: <a href="profile_from_lab.html" title="next chapter">profile_from_lab</a></li>
  </ul></li>
  </ul></li>
  </ul></li>
</ul>
</div>
<div id="searchbox" style="display: none" role="search">
  <h3 id="searchlabel">Quick search</h3>
    <div class="searchformwrapper">
    <form class="search" action="../../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" />
      <input type="submit" value="Go" />
    </form>
    </div>
</div>
<script>$('#searchbox').show(0);</script>








        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="footer">
      &copy;2020, Scott A. Socolofsky.
      
      |
      Powered by <a href="http://sphinx-doc.org/">Sphinx 2.4.4</a>
      &amp; <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.12</a>
      
      |
      <a href="../../_sources/scripts/ambient/profile_from_txt.rst.txt"
          rel="nofollow">Page source</a>
    </div>

    

    
  </body>
</html>